// $Id: etpro_menu_hud.menu,v 1.1.2.5 2004/11/25 07:11:04 goemon Exp $

#include "ui/menudef.h"

// Defines //

#define WINDOW_X		16
#define WINDOW_Y		16
#define WINDOW_WIDTH	400
#define WINDOW_HEIGHT	410
#define GROUP_NAME		"grpetpromenuhud"

// Macros //

#include "ui/menumacros.h"

////////////////////////////////////////////ETPRO HUD/////////////////////////////////////////

menuDef {
	name		"etpro_menu_hud"
	visible		0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_FILLED

	onESC {
		close etpro_menu_hud ;
		open etpro_menu_main
	}

#define SUBWINDOW_WIDTH		WINDOW_WIDTH-12

// Window //

	WINDOW( "HUD", 94 )

// Althud //

	SUBWINDOW( 6, 32, (SUBWINDOW_WIDTH), 40, "ALTERNATIVE HUD" )
	MULTI( 8, 48, (SUBWINDOW_WIDTH)-4, 10, "Alternative HUD:", .2, 8, "b_althud", cvarFloatList { "Normal HUD" 0 "Alternative HUD" 1 "Alternative HUD 2" 2 "Customised" 3}, "Enables alternate, more compact, HUDs" )
	MULTI( 8, 60, (SUBWINDOW_WIDTH)-4, 10, "HUD Settings:", .2, 8, "b_althudflags", cvarFloatList { "Normal" 0 "Move Round Timer" 1 "Remove Ranks" 2 "Move Popups" 4 "Ranks + Timer" 3 "Timer + Popups" 5 "Ranks + Popups" 6 "Timer + Ranks + Popups" 7 }, "Various new HUD options" )

// Text Scale //

	SUBWINDOW( 6, 78, (SUBWINDOW_WIDTH), 40, "TEXT SCALE" )
	CVARFLOATLABEL( 8, 94, (SUBWINDOW_WIDTH)-4, 10, "b_descriptiveTextscale", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 94, (SUBWINDOW_WIDTH)-4, 10, "Descriptive Text Scale:", .2, 8, "b_descriptiveTextscale" 0.8 0 2, "Scales the limbo HUD text" )
	CVARFLOATLABEL( 8, 106, (SUBWINDOW_WIDTH)-4, 10, "b_votetextscale", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 106, (SUBWINDOW_WIDTH)-4, 10, "Vote Text Scale:", .2, 8, "b_votetextscale" 0.8 0 2, "Scales the vote HUD text" )

// Opacity //

	SUBWINDOW( 6, 124, (SUBWINDOW_WIDTH), 76, "OPACITY" )
	CVARFLOATLABEL( 8, 140, (SUBWINDOW_WIDTH)-4, 10, "b_fireteamAlpha", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 140, (SUBWINDOW_WIDTH)-4, 10, "Fireteam Opacity:", .2, 8, "b_fireteamAlpha" 1 0 1, "Changes the opacity of the fireteam overlay" )
	CVARFLOATLABEL( 8, 152, (SUBWINDOW_WIDTH)-4, 10, "b_lagometerAlpha", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 152, (SUBWINDOW_WIDTH)-4, 10, "Lagometer Opacity:", .2, 8, "b_lagometerAlpha" 1 0 1, "Changes the opacity of the lagometer" )
	CVARFLOATLABEL( 8, 164, (SUBWINDOW_WIDTH)-4, 10, "b_watermarkAlpha", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 164, (SUBWINDOW_WIDTH)-4, 10, "Watermark Opacity:", .2, 8, "b_watermarkAlpha" 1 0 1, "Controls the opacity of the hud watermark" )
	CVARFLOATLABEL( 8, 176, (SUBWINDOW_WIDTH)-4, 10, "b_chatAlpha", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 176, (SUBWINDOW_WIDTH)-4, 10, "Chat Background Opacity:", .2, 8, "b_chatAlpha" 1 0 1, "Controls the opacity of the text chat background" )
	CVARFLOATLABEL( 8, 188, (SUBWINDOW_WIDTH)-4, 10, "b_drawSpectatorAlpha", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 188, (SUBWINDOW_WIDTH)-4, 10, "Spectator Status Opacity:", .2, 8, "b_drawSpectatorAlpha" 1 0 1, "Controls the opacity of the spectator/freecam/shoutcaster status notice" )

// Addons //

	SUBWINDOW( 6, 206, (SUBWINDOW_WIDTH), 124, "ADD-ONS" )
	YESNO( 8, 222, (SUBWINDOW_WIDTH)-4, 10, "Chat Flags:", .2, 8, "b_chatflags", "Shows a flag near each chat line to indicate the team" )
	YESNO( 8, 234, (SUBWINDOW_WIDTH)-4, 10, "Spectator Team Flags:", .2, 8, "b_spectatorteamflags", "Shows a flag above the spectator-info lines to indicate the team of the player beeing followed" )
	YESNO( 8, 246, (SUBWINDOW_WIDTH)-4, 10, "Local Time:", .2, 8, "b_drawclock", "Draws the local time on the hud" )
	YESNO( 8, 258, (SUBWINDOW_WIDTH)-4, 10, "Ranks:", .2, 8, "b_drawranks", "Controls whether the player rank is drawn on name popups" )
	YESNO( 8, 270, (SUBWINDOW_WIDTH)-4, 10, "Draw 2D:", .2, 8, "cg_draw2d", "Controls whether 2D elements will be displayed\n(disabling this will hide almost all of the HUD)" )
	YESNO( 8, 282, (SUBWINDOW_WIDTH)-4, 10, "Pop-up Promotions:", .2, 8, "b_drawpromotions", "Controls whether rank promotions are drawn on the hud" )
	YESNO( 8, 294, (SUBWINDOW_WIDTH)-4, 10, "Pop-up Skill Rewards:", .2, 8, "b_drawrewards", "Controls whether skill upgrades are drawn on the hud" )
	MULTI( 8, 306, (SUBWINDOW_WIDTH)-4, 10, "FPS Counter:", .2, 8, "cg_drawFPS", cvarFloatList { "No" 0 "Yes" 1 "Yes, averaged" 2 "ms per Frame" 3 "Avg FPS per 100 ms" 100 "Avg FPS per 200 ms" 200 "Avg FPS per 300 ms" 300 "Avg FPS per 400 ms" 400"Avg FPS per 500 ms" 500 "Avg FPS per 600 ms" 600"Avg FPS per 700 ms" 700 "Avg FPS per 800 ms" 800 "Avg FPS per 900 ms" 900 "Avg FPS per s" 1000 "Avg FPS per 2 s" 2000 "Avg FPS per 3 s" 3000 "Avg FPS per 4 s" 4000 "Avg FPS per 5 s" 5000 "Avg FPS per 10 s" 10000 }, "Controls whether and how the framerate counter is shown" )
	MULTI( 8, 318, (SUBWINDOW_WIDTH)-4, 10, "Lagometer:", .2, 8, "cg_lagometer", cvarFloatList { "No" 0 "Yes" 1 "Yes, FPS Graph" 2 }, "The lagometer will graph the lag between you and the server" )

// zoom //

	SUBWINDOW( 6, 336, (SUBWINDOW_WIDTH), 28, "ZOOM" )
	CVARFLOATLABEL( 8, 350, (SUBWINDOW_WIDTH)-4, 10, "b_mapzoom", .2, ITEM_ALIGN_RIGHT, $evalfloat((SUBWINDOW_WIDTH)-4), 8 )
	SLIDER( 8, 350, (SUBWINDOW_WIDTH)-4, 10, "Compass Zoom Level:", .2, 8, "b_mapzoom" 5.159 0 7.43, "Zooms the Compass in or out" )

// Buttons //

	BUTTON( 6, WINDOW_HEIGHT-44, WINDOW_WIDTH-12, 18, "NEXT ^n>>^*", .3, 14, close etpro_menu_hud ; open etpro_menu_hud2 )
	BUTTON( 6, WINDOW_HEIGHT-24, WINDOW_WIDTH-12, 18, "BACK", .3, 14, close etpro_menu_hud ; open etpro_menu_main )
}
